package xyz.syyrjx.filter;

import xyz.syyrjx.request.SyyrjxRpcCallRequest;

/**
 * @author 大地崩坏苍蝇兽
 * @date 2023/1/6 - 19:25
 */
public class SyyrjxDefaultSafeFilter implements SyyrjxRpcFilter{
    private final static int DEFAULT_MAGIC = 0xabcd;
    @Override
    public boolean pre(SyyrjxRpcCallRequest request) {
        return request.getMagic() == DEFAULT_MAGIC;
    }
}
